#@ backend_layout()
<!-- Main content wrapper -->
#define content()
<div class="wrapper">
    <div class="statsRow">
        <div class="wrapper">
            <div class="controlB">
                <ul>
                    <li><a href="/backend/system_attr/add" title=""><img src="/bes/images/icons/control/32/plus.png"
                                                                          alt=""/><span>新增属性</span></a></li>
                </ul>
                <div class="clear"></div>
            </div>
        </div>
    </div>
    <!-- Static table -->
    <div class="widget">
        <div class="title"><img src="/bes/images/icons/dark/frames.png" alt="" class="titleIcon"/><h6>属性</h6>
        </div>
        <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
            <thead>
            <tr>
                <td width="15%" colspan="2">属性</td>
                <td>操作</td>
            </tr>
            </thead>
            #for(option:optionList)
            <tr>
                <td>#(option.optionValue)</td>
                <td><a title="" class="button blueB" style="margin: 5px;"
                       href="/backend/system_attr/add/?optionId=#(option.id)"><span>新增</span></a></td>
                <td>
                    <table>
                        <tr>
                            #for(systemAttr:systemAttrList)
                                #if(option.id == systemAttr.optionId)
                                    <td align="center">#(systemAttr.value1??)<br/>#(systemAttr.value2??)
                                        <br><a title="" class="button blueB" style="margin: 5px;"
                                               href="/backend/system_attr/edit?id=#(systemAttr.id)"><span>修改</span></a>
                                        <a title="" class="button blueB" style="margin: 5px;"
                                           href="/backend/system_attr/del?id=#(systemAttr.id)"><span>删除</span></a>
                                    </td>
                                #end
                            #end
                        </tr>
                    </table>
                </td>
            </tr>
            #end
        </table>
    </div>
</div>
</div>
#end